$OpenBSD: patch-lib_isc_unix_net_c,v 1.2 2017/05/03 20:20:42 sthen Exp $
--- lib/isc/unix/net.c.orig	Fri Apr 14 04:54:11 2017
+++ lib/isc/unix/net.c	Thu Apr 20 09:35:26 2017
@@ -733,7 +733,7 @@ try_dscp_v6(void) {
 	if (setsockopt(s, IPPROTO_IPV6, IPV6_TCLASS, &dscp, sizeof(dscp)) == 0)
 		dscp_result |= ISC_NET_DSCPSETV6;
 
-#ifdef IPV6_RECVTCLASS
+#if 0 /* pledge doesn't allow setsockopt IPV6_RECVTCLASS */
 	on = 1;
 	if (setsockopt(s, IPPROTO_IPV6, IPV6_RECVTCLASS, &on, sizeof(on)) == 0)
 		dscp_result |= ISC_NET_DSCPRECVV6;
